<template>
    <van-skeleton title :row="3" v-if="dj" />
    <div v-else>
        <van-nav-bar title="列表" left-text="返回" left-arrow @click-left="onClickLeft" />
        <div v-for="item in lb">
            <router-link :to="{ name: 'xq', params:{goods_id:item.goods_id}}">
                <van-card :price="item.goods_price" :title="item.goods_name" :thumb="item.goods_big_logo" />

            </router-link>

        </div>


    </div>
</template>

<script setup>
import { searchAppi } from '@/api/api';
import { ref } from 'vue';
import { useRoute } from 'vue-router';
let lb = ref([]);
let route = useRoute();

searchAppi().then(res => {
    console.log("列表", res);
    lb.value = res.data.message.goods;

})


let gj=ref(true)
setTimeout(()=>{
    gj.value=false
},1000)
</script>

<style lang="scss" scoped></style>